<script>
//全局配置信息
const globalData = {
  baseUrl: 'https://nightowl.top', //环境控制
  // baseUrl: "http://localhost/index.php",
  navBackground: {
    backgroundImage: 'linear-gradient(45deg, #8ec5fc, #e0c3fc )',
  },
  /**
   * @param {msg} string 提示信息
   * @param {icon} string 图标类型
   * @description 用于弹出提示框
   */
};

export default {
  globalData,
  methods: {
    showToast: function (msg = '', icon = 'none') {
      uni.showToast({
        title: msg,
        icon: icon,
      });
    },
  },
};
</script>

<style lang="scss">
@import './static/css/iconfont.css';
</style>
